home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Frame;
- import java.awt.Graphics;
- import java.awt.Rectangle;
- import java.io.Serializable;
- import javax.accessibility.Accessible;
- import javax.accessibility.AccessibleContext;
-
- class JPopupMenu$WindowPopup extends JWindow implements JPopupMenu.Popup, Serializable, Accessible {
- // $FF: synthetic field
- private final JPopupMenu this$0;
- int saveX;
- int saveY;
- boolean firstShow;
- protected AccessibleContext accessibleContext;
-
- public JPopupMenu$WindowPopup(JPopupMenu var1, Frame var2) {
- super(var2);
- this.this$0 = var1;
- this.firstShow = true;
- this.accessibleContext = null;
- }
-
- public void addComponent(Component var1, Object var2) {
- ((JWindow)this).getContentPane().add(var1, var2);
- }
-
- public AccessibleContext getAccessibleContext() {
- if (this.accessibleContext == null) {
- this.accessibleContext = new JPopupMenu.WindowPopup.AccessibleWindowPopup(this);
- }
-
- return this.accessibleContext;
- }
-
- public Rectangle getBoundsOnScreen() {
- return ((Component)this).getBounds();
- }
-
- public Component getComponent() {
- return this;
- }
-
- public int getHeight() {
- return ((Component)this).getBounds().height;
- }
-
- public int getWidth() {
- return ((Component)this).getBounds().width;
- }
-
- public void hide() {
- super.hide();
- ((Container)this).removeNotify();
- }
-
- public void removeComponent(Component var1) {
- ((JWindow)this).getContentPane().remove(var1);
- }
-
- public void setLocationOnScreen(int var1, int var2) {
- ((Component)this).setLocation(var1, var2);
- this.saveX = var1;
- this.saveY = var2;
- }
-
- public void show(Component var1) {
- ((Component)this).setLocation(this.saveX, this.saveY);
- ((Component)this).setVisible(true);
- if (this.firstShow) {
- this.hide();
- ((Component)this).setVisible(true);
- this.firstShow = false;
- }
-
- }
-
- public void update(Graphics var1) {
- ((Container)this).paint(var1);
- }
- }
-